﻿<Window x:Class="Clancy.Ui.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        xmlns:controls="clr-namespace:Clancy.Ui.Controls"
        mc:Ignorable="d"
        DataContext="{Binding MainWindowViewModel, Source={StaticResource Locator}}"
        Title="emvoll clancy video surveilance"
        Height="600" Width="800"
        Icon="/Clancy.Ui;component/Resources/camera.ico"
        Loaded="OnMainWindowLoaded"
        Closing="OnMainWindowClosing" WindowState="Maximized">
    <Grid>
        <DockPanel LastChildFill="True">

            <Ribbon DockPanel.Dock="Top" IsDropDownOpen="True" ItemsSource="{Binding RibbonContent}">
                <Ribbon.ApplicationMenu>
                    <RibbonApplicationMenu Name="ApplicationMenu" />
                </Ribbon.ApplicationMenu>
            </Ribbon>

            <xcad:DockingManager x:Name="DockingManager">
                <xcad:LayoutRoot>

                    <xcad:LayoutPanel Orientation="Horizontal">

                        <xcad:LayoutAnchorablePaneGroup DockWidth="150">

                            <xcad:LayoutAnchorablePane DockWidth="150">
                                <xcad:LayoutAnchorable Title="Project Settings" Hiding="OnHiding">

                                    <xctk:PropertyGrid Name="PropertyDisplay"
                                                       SelectedObject="{Binding PropertyEditorViewModel.CurrentSelection}"
                                                       ShowSearchBox="False"
                                                       ShowSortOptions="False"
                                                       ShowTitle="True" />
                                </xcad:LayoutAnchorable>

                                <xcad:LayoutAnchorable Title="Teach Threshold" Hiding="OnHiding">
                                    <controls:TeachThresholdControl DataContext="{Binding TeachThresholdViewModel}" />
                                </xcad:LayoutAnchorable>
                                
                            </xcad:LayoutAnchorablePane>
                        </xcad:LayoutAnchorablePaneGroup>

                        <xcad:LayoutAnchorablePaneGroup Orientation="Horizontal">

                            <xcad:LayoutAnchorablePaneGroup Orientation="Vertical">
                                <xcad:LayoutAnchorablePaneGroup Orientation="Horizontal">
                                    <xcad:LayoutAnchorablePane>
                                        <xcad:LayoutAnchorable Title="Cameras" Hiding="OnHiding" x:Name="AnchorableCameras">

                                            <controls:CameraManager DataContext="{Binding CameraManagerViewModel}" x:Name="CameraManager" />
                                        </xcad:LayoutAnchorable>
                                    </xcad:LayoutAnchorablePane>
                                </xcad:LayoutAnchorablePaneGroup>

                                <xcad:LayoutAnchorablePane>

                                    <xcad:LayoutAnchorable Title="Recordings" Hiding="OnHiding" x:Name="AnchorableRecording">

                                        <controls:RecordingArchive DataContext="{Binding RecordingArchiveViewModel}" x:Name="RecordingArchive" />
                                    </xcad:LayoutAnchorable>
                                </xcad:LayoutAnchorablePane>
                            </xcad:LayoutAnchorablePaneGroup>
                        </xcad:LayoutAnchorablePaneGroup>
                    </xcad:LayoutPanel>
                </xcad:LayoutRoot>
            </xcad:DockingManager>
        </DockPanel>
    </Grid>
</Window>